using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SysFrame.Message
{
    /// <summary>
    /// 条件信息
    /// </summary>
    public class MsQuery:MsBase
    {
        public MsQuery()
        {
        }
        public MsQuery(string str)
        {
            _strquery = str;
        }
        private string _strquery;//条件字符串
        private string _menuID;//菜单ID
        private string _strorder;//排序语句
        private string _pageindex;//页号
        private string _pagesize;//页大小
        private string _ordertype;//排序类型非0则降序(默认升序)
        private string _tablename;//表名
        private string _strselect;//查找字段

        /// <summary>
        /// 查找字段
        /// </summary>	
        public string strselect
        {
            get { return _strselect; }
            set { _strselect = value; }
        }

        /// <summary>
        /// 表名
        /// </summary>	
        public string tablename
        {
            get { return _tablename; }
            set { _tablename = value; }
        }


        /// <summary>
        /// 排序类型非0则降序(默认升序)
        /// </summary>	
        public string ordertype
        {
            get { return _ordertype; }
            set { _ordertype = value; }
        }

        /// <summary>
        /// 页大小
        /// </summary>	
        public string pagesize
        {
            get { return _pagesize == null ? "20" : _pagesize; }
            set { _pagesize = value; }
        }

        /// <summary>
        /// 页号
        /// </summary>	
        public string pageindex
        {
            get { return _pageindex == null ? "1" : _pageindex; }
            set { _pageindex = value; }
        }

        /// <summary>
        /// 排序语句 已经包含order by
        /// </summary>	
        public string strorder
        {
            get { return _strorder; }
            set { _strorder = value; }
        }



        /// <summary>
        /// 菜单ID
        /// </summary>	
        public string menuID
        {
            get { return _menuID; }
            set { _menuID = value; }
        }


        /// <summary>
        /// 条件字符串
        /// </summary>	
        public string strquery
        {
            get { return _strquery; }
            set { _strquery = value; }
        }

    }
}
